<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var obj = {
        name:"达姆",
        marry:function () {
            console.log( "冬雨" + "❤" +  this.name)
        }
    }

    //隐式丢失
    //硬绑定函数bind 是用来解决隐式丢失的
    setTimeout(obj.marry.bind(obj),3000)



    /*function setTimeout(fn,time) {
        fn()
    }*/
</script>
</html>